<template>
  <footer class="footer">
    <div class="footer-wave">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none">
        <path fill="currentColor" d="M0,32L60,42.7C120,53,240,75,360,74.7C480,75,600,53,720,48C840,43,960,53,1080,58.7C1200,64,1320,64,1380,64L1440,64L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z"></path>
      </svg>
    </div>
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <h3 class="footer-title">
            <span class="title-icon">🚀</span>
            AI智能助手
          </h3>
          <div class="footer-links">
            <router-link to="/" class="footer-link">
              <span class="link-icon">🏠</span>主页
            </router-link>
            <router-link to="/code-master" class="footer-link">
              <span class="link-icon">💻</span>AI编程大师
            </router-link>
            <router-link to="/super-agent" class="footer-link">
              <span class="link-icon">🤖</span>AI超级智能体
            </router-link>
          </div>
        </div>
        <div class="footer-section">
          <h3 class="footer-title">
            <span class="title-icon">ℹ️</span>
            关于我们
          </h3>
          <div class="footer-links">
            <a href="#" class="footer-link">
              <span class="link-icon">📜</span>用户协议
            </a>
            <a href="#" class="footer-link">
              <span class="link-icon">🔒</span>隐私政策
            </a>
            <a href="#" class="footer-link">
              <span class="link-icon">✉️</span>联系我们
            </a>
            <div class="repo-links">
              <a href="https://gitee.com/XuHui4916/xi-ai-agent-frontend.git" target="_blank" class="footer-link special-link frontend-link">
                <span class="icon-gitee">
                  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16" fill="currentColor">
                    <path d="M256 32C132.3 32 32 132.3 32 256c0 113.7 81.5 208.2 189.5 228.6 6.5 1.2 8.9-2.8 8.9-6.2 0-3.1-.1-13.1-.2-23.8-77.1 16.7-93.4-32.8-93.4-32.8-12.6-32-30.8-40.5-30.8-40.5-25.1-17.2 1.9-16.9 1.9-16.9 27.8 2 42.4 28.5 42.4 28.5 24.7 42.2 64.8 30 80.6 23 2.5-17.8 9.7-30 17.6-36.9-61.5-7-126.2-30.8-126.2-137 0-30.3 10.8-55 28.5-74.5-2.9-7-12.4-35.1 2.7-73.2 0 0 23.2-7.4 76 28.4 22-6.1 45.7-9.2 69.2-9.3 23.5.1 47.1 3.2 69.2 9.3 52.7-35.8 75.9-28.4 75.9-28.4 15.1 38.1 5.6 66.2 2.7 73.2 17.8 19.5 28.5 44.2 28.5 74.5 0 106.4-64.8 130-126.5 136.9 10 8.6 18.9 25.5 18.9 51.4 0 37.2-.3 67.1-.3 76.2 0 3.4 2.3 7.4 8.9 6.2C398.5 464.1 480 369.8 480 256 480 132.3 379.7 32 256 32z"/>
                  </svg>
                </span>
                前端实现
              </a>
              <a href="https://gitee.com/XuHui4916/xu-ai-agent.git" target="_blank" class="footer-link special-link backend-link">
                <span class="icon-gitee">
                  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16" fill="currentColor">
                    <path d="M256 32C132.3 32 32 132.3 32 256c0 113.7 81.5 208.2 189.5 228.6 6.5 1.2 8.9-2.8 8.9-6.2 0-3.1-.1-13.1-.2-23.8-77.1 16.7-93.4-32.8-93.4-32.8-12.6-32-30.8-40.5-30.8-40.5-25.1-17.2 1.9-16.9 1.9-16.9 27.8 2 42.4 28.5 42.4 28.5 24.7 42.2 64.8 30 80.6 23 2.5-17.8 9.7-30 17.6-36.9-61.5-7-126.2-30.8-126.2-137 0-30.3 10.8-55 28.5-74.5-2.9-7-12.4-35.1 2.7-73.2 0 0 23.2-7.4 76 28.4 22-6.1 45.7-9.2 69.2-9.3 23.5.1 47.1 3.2 69.2 9.3 52.7-35.8 75.9-28.4 75.9-28.4 15.1 38.1 5.6 66.2 2.7 73.2 17.8 19.5 28.5 44.2 28.5 74.5 0 106.4-64.8 130-126.5 136.9 10 8.6 18.9 25.5 18.9 51.4 0 37.2-.3 67.1-.3 76.2 0 3.4 2.3 7.4 8.9 6.2C398.5 464.1 480 369.8 480 256 480 132.3 379.7 32 256 32z"/>
                  </svg>
                </span>
                后端实现
              </a>
            </div>
          </div>
        </div>
        <div class="footer-section">
          <h3 class="footer-title">
            <span class="title-icon">🌟</span>
            关注我们
          </h3>
          <div class="social-links">
            <a href="#" class="social-link">
              <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                <path d="M23.643 4.937c-.835.37-1.732.62-2.675.733a4.67 4.67 0 0 0 2.048-2.578 9.3 9.3 0 0 1-2.958 1.13 4.66 4.66 0 0 0-7.938 4.25 13.229 13.229 0 0 1-9.602-4.868 4.66 4.66 0 0 0 1.442 6.22 4.647 4.647 0 0 1-2.11-.583v.06a4.66 4.66 0 0 0 3.737 4.568 4.692 4.692 0 0 1-2.104.08 4.661 4.661 0 0 0 4.352 3.234 9.348 9.348 0 0 1-5.786 1.995 9.5 9.5 0 0 1-1.112-.065 13.175 13.175 0 0 0 7.14 2.093c8.57 0 13.255-7.098 13.255-13.254 0-.2-.005-.402-.014-.602a9.47 9.47 0 0 0 2.323-2.41z"/>
              </svg>
            </a>
            <a href="#" class="social-link">
              <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                <path d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8a1.25 1.25 0 0 1-1.25-1.25a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3z"/>
              </svg>
            </a>
            <a href="#" class="social-link">
              <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
                <path d="M22.05 1.577c-.393-.016-.784.08-1.117.235-.484.186-4.92 1.902-9.41 3.64-2.26.873-4.518 1.746-6.256 2.415-1.737.67-3.045 1.168-3.114 1.192-.46.16-1.082.362-1.61.984-.133.155-.267.354-.335.628s-.038.622.095.895c.265.547.714.773 1.244.976.148.057 1.18.38 1.556.497.378.117 4.28 1.707 4.28 1.707l1.7.482s.862.867.83 1.493c.024 1.342-1.255 2.512-1.255 2.512-.07.033-.246.367-.444.72-.085.31-.158.628-.241.93-.148.64-.22 1.068-.314 1.5-.067.322.073.663.394.773.32.11.63-.03.75-.23.12-.2.872-1.934 1.484-3.225l-1.304 4.06s-.047.64.464.662c.233.014.413-.126.563-.276.15-.15.914-.94 1.18-1.21.245-.54.67-1.43.67-1.43l4.593-10.86s.245-.525.233-.864c-.01-.213-.08-.414-.24-.586zm-10.104 15.71-.013.238s-3.767-1.43-5.294-1.95c-1.525-.53-.814-1.06-.56-1.14.08-.032 1.756-.703 3.897-1.536 2.14-.834 4.262-1.647 4.4-1.712.278-.128-.114.297-.347.56-.232.265-2.732 2.744-3.045 3.045-.313.302.876.113.876.113l.454-.137 3.636-2.4.26-.223.44.48c-.1.146-.48.68-.83 1.283-.353.603-.763 1.28-1.033 1.71-.272.428-.35.698-.443.91z"/>
              </svg>
            </a>
          </div>
          <div class="newsletter">
            <h4 class="newsletter-title">订阅通讯</h4>
            <div class="newsletter-form">
              <input type="email" placeholder="您的邮箱" class="newsletter-input">
              <button class="newsletter-button">订阅</button>
            </div>
          </div>
        </div>
      </div>
      <div class="footer-divider"></div>
      <div class="footer-bottom">
        <p class="copyright">
          © {{ currentYear }} AI智能助手平台 版权所有
          <span class="license-info">沪ICP备XXXXXXXX号</span>
        </p>
        <div class="tech-stack">
          <span class="tech-item">Vue 3</span>
          <span class="tech-separator">|</span>
          <span class="tech-item">SSE</span>
          <span class="tech-separator">|</span>
          <span class="tech-item">AI驱动</span>
        </div>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'AppFooter',
  computed: {
    currentYear() {
      return new Date().getFullYear();
    }
  }
}
</script>

<style scoped>
.footer {
  background-color: #1a1a2e;
  color: #f5f5f5;
  padding: 40px 0 20px;
  font-family: 'Noto Sans SC', 'Roboto', sans-serif;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  color: #1a1a2e;
  line-height: 0;
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #00f2fe, var(--primary-color));
  background-size: 300% 100%;
  animation: gradient-shift 10s ease infinite;
  z-index: 2;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
  z-index: 3;
  position: relative;
}

.footer-section {
  flex: 1;
  min-width: 180px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.title-icon {
  font-size: 20px;
  margin-right: 2px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-link {
  color: #a0a0a0;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.3s;
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.link-icon {
  position: absolute;
  left: 0;
  font-size: 14px;
}

.footer-link:hover {
  color: white;
  transform: translateX(5px);
}

.repo-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.special-link {
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0;
  max-width: 180px;
  text-align: center;
}

.special-link::before {
  display: none;
}

.frontend-link {
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
  background-color: rgba(66, 133, 244, 0.1);
}

.backend-link {
  color: #fc4d50;
  border: 1px solid rgba(252, 77, 80, 0.3);
  background-color: rgba(252, 77, 80, 0.1);
}

.special-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(252, 77, 80, 0.2);
}

.frontend-link:hover {
  background-color: rgba(66, 133, 244, 0.2);
  color: #4285f4;
  transform: translateY(-2px);
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.backend-link:hover {
  background-color: rgba(252, 77, 80, 0.2);
  color: #fc4d50;
  transform: translateY(-2px);
  border-color: rgba(252, 77, 80, 0.5);
  box-shadow: 0 4px 12px rgba(252, 77, 80, 0.2);
}

.icon-gitee {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: white;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
  background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
  border-color: rgba(156, 39, 176, 0.5);
}

.newsletter {
  margin-top: 20px;
}

.newsletter-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #d0d0d0;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 100%;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-button {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.newsletter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 20px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.copyright {
  color: #777;
}

.license-info {
  margin-left: 10px;
  font-size: 12px;
  opacity: 0.7;
}

.tech-stack {
  display: flex;
  align-items: center;
  color: #777;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}

.tech-item {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.7);
}

.tech-separator {
  margin: 0 8px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .repo-links {
    align-items: flex-start;
  }
  
  .special-link {
    padding: 8px 15px;
  }
  
  .tech-stack {
    margin: 0 auto;
  }
}
</style> 